package com.haikesi.api.device.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haikesi.api.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
public class DeviceVO  implements Serializable {
    private static final long serialVersionUID = -1L;


    @ApiModelProperty(value = "Id")
    private String id;

    @ApiModelProperty(value = "设备类型码")
    private String productCode;

    @ApiModelProperty(value = "设备类型名称")
    private String productCodeName;

    @ApiModelProperty(value = "设备所属账号")
    private String deviceSubscriberNumber;

    @ApiModelProperty(value = "订阅账号ID")
    private String deviceSubscriberId;

    @ApiModelProperty(value = "设备mac地址")
    private String deviceMac;

    @ApiModelProperty(value = "设备序列号")
    private String serialNum;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;
    @ApiModelProperty(value = "设备别名")
    private String deviceAlias;

    @ApiModelProperty(value = "设备位置ID")
    private String positionId;
    @ApiModelProperty(value = "设备位置名称")
    private String positionName;

    @ApiModelProperty(value = "设备机构ID")
    private String organizationId;

    @ApiModelProperty(value = "设备机构名称",hidden = true)
    private String organizationName;

    @ApiModelProperty(value = "设备经度")
    private String deviceLongitude;

    @ApiModelProperty(value = "设备纬度")
    private String deviceLatitude;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

}